<template>
	<view class="content">
		<view class='user_contnet'>
			<image class="avatar" :src="userInfo.img" mode="" ></image>
			<view class="user_name">
				<view class="name_line">{{userInfo.name}}</view>
				<view class="user_id_line">用户ID:{{userInfo.id}}</view>
			</view>
		</view>
		<view class="list_quest">
			<view class="list_num account"   @click="getNavigateUrl('account')">我的账号管理</view>
			<view class="list_num task" @click="getNavigateUrl('task')">我的任务</view>
			<view class="list_num collection" @click="getNavigateUrl('collection')">我的收款信息</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:{
					img:'/static/images/f.png',
					name:'未登录',
					id:0
				}
			}
		},
		onLoad() {

		},
		methods: {
			getNavigateUrl:function(url){
				uni.navigateTo({
					url: url
				});
			}
		}
	}
</script>

<style>
	body, html{
		
		background-color:#fff;
	}
	view{
		
		background-color:#fff;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background-color:#fff;
	}
	.user_contnet{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		padding: 40rpx 20rpx;
		border-bottom: #f5f5f5 10rpx solid;
	}
	.avatar{
		width: 140rpx;
		height: 140rpx;
		border-radius: 50%;
	}
	.user_name{
		padding: 40rpx;
	}
	.name_line{
		font-size: 42rpx;
		
	}
	.user_id_line{
		font-size: 30rpx;
		color:#8f8f8f;
		margin-top: 20rpx;
	}
	.list_quest{
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		
		
		width: 100%;
		font-size: 30rpx;
	}
	.list_num{
		padding:40rpx 20rpx;
		width: 100%;
		border-bottom: #f5f5f5 2rpx solid;
	}
</style>
